import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/user_open_entity.g.dart';
import 'dart:convert';
export 'package:flutter_taotaoshipin/generated/json/user_open_entity.g.dart';

@JsonSerializable()
class UserOpenEntity {
	int? status = 0;
	@JSONField(name: "is_own")
	int? isOwn = 0;
	@JSONField(name: "client_id")
	int? clientId = 0;
	@JSONField(name: "client_code")
	String? clientCode = '';
	int? auto = 0;
	@JSONField(name: "user_name")
	String? userName = '';
	@JSONField(name: "user_pwd")
	String? userPwd = '';
	@JSONField(name: "app_key")
	String? appKey = '';
	UserOpenCsj? csj;

	UserOpenEntity();

	factory UserOpenEntity.fromJson(Map<String, dynamic> json) => $UserOpenEntityFromJson(json);

	Map<String, dynamic> toJson() => $UserOpenEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserOpenCsj {
	@JSONField(name: "app_id")
	String? appId = '';
	@JSONField(name: "app_name")
	String? appName = '';
	@JSONField(name: "code_id")
	String? codeId = '';
	int? num = 0;
	List<UserOpenCsjList>? list = [];

	UserOpenCsj();

	factory UserOpenCsj.fromJson(Map<String, dynamic> json) => $UserOpenCsjFromJson(json);

	Map<String, dynamic> toJson() => $UserOpenCsjToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class UserOpenCsjList {
	@JSONField(name: "adver_id")
	String? adverId = '';
	@JSONField(name: "adver_type")
	String? adverType = '';

	UserOpenCsjList();

	factory UserOpenCsjList.fromJson(Map<String, dynamic> json) => $UserOpenCsjListFromJson(json);

	Map<String, dynamic> toJson() => $UserOpenCsjListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}